﻿namespace Bootstrap.Security
{
    /// <summary>
    /// BA 用户实例
    /// </summary>
    public class BootstrapUser
    {
        /// <summary>
        /// 获得/设置 系统登录用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 获得/设置 用户显示名称
        /// </summary>
        public string DisplayName { get; set; }

        /// <summary>
        /// 获得/设置 用户头像图标路径
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 获得/设置 用户设置样式表名称
        /// </summary>
        public string Css { get; set; }

        /// <summary>
        /// 获得/设置 用户默认登陆 App 标识
        /// </summary>
        public string App { get; set; }

        /// <summary>
        /// 获得/设置 默认格式为 UserName (DisplayName)
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.Format("{0} ({1})", UserName, DisplayName);
        }
    }
}
